<template>
    <div class="sjycjhtj">
        <div class="sjycjhtj-top">
            <el-form :model="form" ref="form" label-width="80px" :inline="true" size="normal">
                <el-form-item label="行政区划">
                    <el-cascader v-model="form.addvcd" :options="xzqhdata" :props="xzqhprop" ref="xzqh"
                        @change="xzqhorgChange" :clearable="true"></el-cascader>
                </el-form-item>
                <el-form-item label="测站编码">
                    <el-input v-model="form.stcd" placeholder="请输入测站编码"></el-input>
                </el-form-item>
                <el-form-item label="测站名称">
                    <el-input v-model="form.stnm" placeholder="请输入测站名称"></el-input>
                </el-form-item>
                <el-form-item label="测站类别">
                    <el-select v-model="form.sttp" placeholder="请选择">
                        <el-option v-for="item in czlx" :key="item.statusid" :label="item.statusname"
                            :value="item.statusid">
                        </el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="查询时间">
                    <el-date-picker v-model="form.tm" type="daterange" align="right" unlink-panels range-separator="至"
                        :start-placeholder="stm" :end-placeholder="etm" value-format="yyyy-MM-dd" format="yyyy-MM-dd">
                    </el-date-picker>
                </el-form-item>
            </el-form>
            <div class="top-button">
                <el-button size="default" @click="chaxun"><i class="iconfont icon-sousuo"></i> 查 询</el-button>
                <el-button size="default" @click="chongzhi"><i class="el-icon-refresh"></i> 重 置</el-button>
                <el-dropdown size="small" placement="bottom" trigger="click" @command="batchOperate"
                    style="margin-left: 10px;">
                    <el-button class="search-btn" size="default">
                        <i class="el-icon-upload2"></i>
                        导 出
                    </el-button>
                    <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item command="batch_remarks">导出列表</el-dropdown-item>
                        <el-dropdown-item command="export_excel">导出测站</el-dropdown-item>
                    </el-dropdown-menu>
                </el-dropdown>
            </div>
        </div>
        <div class="sjycjhtj-middle">
            <el-table :data="tableData" class="tableBox" @selection-change="handleSelectChange" border stripe height="90%"
                :row-class-name="tableRowClassName" :header-cell-style="{ background: '#b2dffe', color: '#000' }"
                style="width: 100%">
                <el-table-column type="selection" align="center" width="50">
                </el-table-column>
                <el-table-column type="index" label="序号" align="center" width="50" :show-overflow-tooltip="true">
                    <template slot-scope="scope">
                        <div v-text="pagesize * (currentPage - 1) + 1 + scope.$index"></div>
                    </template>
                </el-table-column>
                <el-table-column prop="stcd" label="监测站编码" width="120" :show-overflow-tooltip="true">
                </el-table-column>
                <el-table-column prop="stnm" label="监测站名称" width="130" :show-overflow-tooltip="true">
                </el-table-column>
                <el-table-column prop="addvnm" label="行政区划" width="160" :show-overflow-tooltip="true">
                </el-table-column>
                <el-table-column prop="stlc" label="监测站位置" :show-overflow-tooltip="true">
                </el-table-column>
                <el-table-column prop="sttp" label="监测站类别" width="160" :show-overflow-tooltip="true">
                    <template slot-scope="scope">
                        <span v-if="scope.row.sttp == 0">国家级基本监测站</span>
                        <span v-if="scope.row.sttp == 1">省级基本监测站</span>
                        <span v-if="scope.row.sttp == 2">普通基本监测站</span>
                        <span v-if="scope.row.sttp == 3">统测站</span>
                    </template>
                </el-table-column>
                <el-table-column prop="minz,maxz" label="水位阈值(m)" width="130" :show-overflow-tooltip="true">
                    <template slot-scope="scope">
                        {{ scope.row.minz }}-{{ scope.row.maxz }}
                    </template>
                </el-table-column>
                <el-table-column prop="minbd,maxbd" label="埋深阈值(m)" width="130" :show-overflow-tooltip="true">
                    <template slot-scope="scope">
                        {{ scope.row.minbd }}-{{ scope.row.maxbd }}
                    </template>
                </el-table-column>
                <el-table-column prop="count" label="异常值累计数量(条)" align="center" width="150" :show-overflow-tooltip="true">
                </el-table-column>
                <el-table-column label="操作" width="80" align="center" :show-overflow-tooltip="true">
                    <template slot-scope="scope">
                        <i class="iconfont icon-chakan" title="查看" @click="chakan(scope.row)"></i>
                    </template>
                </el-table-column>
            </el-table>
            <div class="bottom">
                <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
                    :current-page.sync="currentPage" :page-size="pagesize" layout="total, prev, pager, next" :total="total">
                </el-pagination>
            </div>
        </div>
        <!-- 查看对话框 -->
        <el-dialog :visible.sync="dialogVisible" class="ssdhk" width="80%" :append-to-body="true">
            <div slot="title" class="dialog-title">
                <div class="button-right">
                    <span>{{ this.ckdhktitle }}监测站异常数据统计</span>
                    <!-- <i class="el-icon-circle-close"></i>; -->
                </div>
            </div>
            <div class="center">
                <el-table class="tableBox" :data="tableData1" :row-class-name="tableRowClassName"
                    :header-cell-style="{ background: '#b2dffe', color: '#000' }" stripe border style="width:100%">
                    <el-table-column prop="jbxx" label="基本信息" width="180">
                        <el-table-column prop="stcd" label="测站编码" style="background-color: red" align="center" width="180">
                        </el-table-column>
                        <el-table-column prop="stnm" label="测站名称" align="center" :show-overflow-tooltip="true">
                        </el-table-column>
                        <el-table-column prop="addvnm" label="行政区划" align="center" :show-overflow-tooltip="true">
                        </el-table-column>
                        <el-table-column prop="stlc" label="监测站位置" align="center" :show-overflow-tooltip="true">
                        </el-table-column>
                    </el-table-column>
                </el-table>
                <el-table class="tableBox" :data="tableData2" stripe height="235" :row-class-name="tableRowClassName"
                    :header-cell-style="{ background: '#b2dffe', color: '#000' }" border style="width: 100%">
                    <el-table-column prop="yczsjxx" label="异常值数据信息" width="180">
                        <el-table-column type="index" label="序号" align="center" width="180">
                        </el-table-column>
                        <el-table-column prop="z" label="水位异常值(m)" align="center" width="180">
                        </el-table-column>
                        <el-table-column prop="bd" label="埋深异常(m)" align="center" :show-overflow-tooltip="true">
                        </el-table-column>
                        <el-table-column prop="tm" label="时间" align="center" :show-overflow-tooltip="true">
                        </el-table-column>
                    </el-table-column>
                </el-table>
            </div>
            <span slot="footer" class="dialog-footer">
                <el-button @click="ckdhkdc"><i class="iconfont icon-xiazai-" title="下载"></i>&nbsp;下 载
                </el-button>
            </span>
        </el-dialog>
    </div>
</template>
<script>
// 列表、行政区划、时间段设置默认日期
import { zbcgsjyclb, xzqhlist, zbcgsjycckdhklb, qylx, zbcgjhdc, zbcgjhdhkdc } from '@/api/index'
import exprotFile from "@/utils/exportFile"
export default {
    data() {
        return {
            // 主页头部表单
            form: {
                addvcd: '220000',//行政区划
                stcd: '',//站点编码
                stnm: '',//站点名称
                tm: [],//查询时间,
                sttp: '',//测站类别
            },
            czlx: [],
            tableData: [],// 主页表格内容
            // 底部页码
            pagesize: 10,//每页条数
            currentPage: 1,//当前页
            total: 10,//总条数
            xzqhdata: [],//行政区划
            xzqhprop: {
                label: "addvnm",
                value: "addvcd",
                children: "addvcds",
                checkStrictly: true,
            },
            dialogVisible: false,// 查看对话框
            tableData1: [], // 查看对话框基本信息数组
            tableData2: [],// 查看对话框异常值数据信息
            ckdhktitle: '',//查看对话框的对话框title
            stm: '',//开始时间
            etm: '',//结束时间
            multipleSelection: [],//多个测站的选取
            id: '',//查看对话框的下载传参
            minbd: '',
            maxbd: '',
            minz: '',
            maxz: ''
        }
    },
    mounted() {
        this.getriqi();//获取顶部的时间段js
        this.zbcgsjyclb();//获取表格数据
        this.qylxobj();//获取顶部测站类别的数据
        this.xzqhlist();//获取行政区划
    },
    methods: {
        // 获取顶部的时间段
        // getriqi() {
        //     var dqdate = new Date()
        //     var dqday = dqdate.getDate()
        //     var dqyear = dqdate.getFullYear()
        //     var dqmonth = dqdate.getMonth() + 1
        //     // console.log(dqyear, dqmonth)
        //     // console.log(dqday)
        //     if (dqmonth < 10) {
        //         dqmonth = "0" + dqmonth
        //     }
        //     if (dqday < 10) {
        //         dqday = "0" + dqday
        //     }
        //     if (dqday <= 5) {
        //         var cemon = dqmonth - 1
        //         if (cemon - 1 == 0) {
        //             var ceyea = dqyear
        //             // cemon = 12
        //             if (cemon == 11) {
        //                 cemon = 12
        //                 ceyea = dqyear - 1
        //             }
        //         }
        //         switch (cemon) {
        //             case 1:
        //                 this.form.tm = ceyea + "-0" + cemon + "-" + "01," + ceyea + "-0" + cemon + "-" + "31";
        //                 break;
        //             case 2:
        //                 this.form.tm = ceyea + "-0" + cemon + "-" + "01," + ceyea + "-0" + cemon + "-" + "28";
        //                 break;
        //             case 3:
        //                 this.form.tm = ceyea + "-0" + cemon + "-" + "01," + ceyea + "-0" + cemon + "-" + "31";
        //                 break;
        //             case 4:
        //                 this.form.tm = ceyea + "-0" + cemon + "-" + "01," + ceyea + "-0" + cemon + "-" + "30";
        //                 break;
        //             case 5:
        //                 this.form.tm = ceyea + "-0" + cemon + "-" + "01," + ceyea + "-0" + cemon + "-" + "31";
        //                 break;
        //             case 6:
        //                 this.form.tm = ceyea + "-0" + cemon + "-" + "01," + ceyea + "-0" + cemon + "-" + "30";
        //                 break;
        //             case 7:
        //                 this.form.tm = ceyea + "-0" + cemon + "-" + "01," + ceyea + "-0" + cemon + "-" + "31";
        //                 break;
        //             case 8:
        //                 this.form.tm = ceyea + "-0" + cemon + "-" + "01," + ceyea + "-0" + cemon + "-" + "31";
        //                 break;
        //             case 1:
        //                 this.form.tm = ceyea + "-0" + cemon + "-" + "01," + ceyea + "-0" + cemon + "-" + "31";
        //                 break;
        //             case 9:
        //                 this.form.tm = ceyea + "-0" + cemon + "-" + "01," + ceyea + "-0" + cemon + "-" + "30";
        //                 break;
        //             case 10:
        //                 this.form.tm = ceyea + "-" + cemon + "-" + "01," + ceyea + "-" + cemon + "-" + "31";
        //                 break;
        //             case 11:
        //                 this.form.tm = ceyea + "-" + cemon + "-" + "01," + ceyea + "-" + cemon + "-" + "30";
        //                 break;
        //             case 12:
        //                 this.form.tm = ceyea + "-" + cemon + "-" + "01," + ceyea + "-" + cemon + "-" + "31";
        //                 break;
        //         }
        //     } else if (dqday => 6) {
        //         this.form.tm = dqyear + "-" + dqmonth + "-" + "01," + dqyear + "-" + dqmonth + "-" + dqday
        //     }
        //     this.form.tm = this.form.tm.split(",")
        //     // console.log(this.form.tm[0])
        //     this.stm = this.form.tm[0]
        //     this.etm = this.form.tm[1]
        // },
        getriqi() {
            let nowdays = new Date()
            let day = nowdays.getDate()
            let year = nowdays.getFullYear()
            let month = nowdays.getMonth()
            if (day <= 15) {
                month = month - 1
            }
            if (day >= 16) {
                month = month
            }
            if (month === 0) {
                month = 11
                year = year - 1
            }
            if (month < 10) {
                month = '0' + month
            }
            let yDate = new Date(year, month, 0)
            let startDareTime = year + '-' + month + '-01'
            let endDateTime = year + '-' + month + '-' + yDate.getDate() + ' '
            // console.log(startDareTime, endDateTime);
            this.form.tm[0] = startDareTime
            this.form.tm[1] = endDateTime
            this.stm = this.form.tm[0]
            this.etm = this.form.tm[1]
            // console.log(this.form.tm);
        },
        // 获取行政区划
        async xzqhlist() {
            const addvcd = '220000'
            const res = await xzqhlist(addvcd)
            // console.log(res.data.data);
            this.xzqhdata = res.data.data
        },
        // 获取区域类型数据
        async qylxobj() {
            // task_status
            // 获取状态数据
            const zt = 'sttp'
            const res4 = await qylx(zt)
            // console.log(res4);
            this.czlx = res4.data.data
            // console.log(this.czlx);
        },
        // 获取表格数据
        async zbcgsjyclb() {
            const sjycjhtjobj = {
                addvcd: '220000',
                addvcdArray: [],//行政区划数组
                etm: this.form.tm[1],//结束时间
                pageInfo: {
                    pageIndex: this.currentPage,
                    pagesize: this.pagesize
                },
                stcd: this.form.stcd,
                stcdArray: [],//所选测站的数组，可以通过批量删除那个方法去获取数组的内容，并复制到这个stcdArray里面
                stm: this.form.tm[0],//开始时间
                stnm: this.form.stnm,//测站名称
                sttp: this.form.sttp,//测站类别
            }
            // console.log(sjycjhtjobj);
            const res = await zbcgsjyclb(JSON.stringify(sjycjhtjobj))
            // console.log(res);//200
            this.tableData = res.data.data.list
            this.total = res.data.data.total
            // this.tableData.map((item, index, arr) => {
            //     if (item.sttp == '0') {
            //         item.sttp = '国家级基本监测站'
            //     } else if (item.sttp == '1') {
            //         item.sttp = '省级基本监测站'
            //     } else if (item.sttp == '2') {
            //         item.sttp = '普通基本监测站'
            //     } else if (item.sttp == '3') {
            //         item.sttp = '统测站'
            //     }
            // })
        },
        // 下拉框自动关闭,选择后触发事件
        xzqhorgChange(val) {
            this.form.addvcd = val.slice(-1).toString();
            this.$refs.xzqh.dropDownVisible = false;
        },
        handleSizeChange(val) {
            // console.log(`每页 ${val} 条`);
        },
        handleCurrentChange(val) {
            this.currentPage = val
            const sjycjhtjobj = {
                addvcd: this.form.addvcd,
                addvcdArray: [],//行政区划数组
                etm: this.form.tm[1],//结束时间
                pageInfo: {
                    pageIndex: this.currentPage,
                    pagesize: this.pagesize
                },
                stcd: this.form.stcd,
                stcdArray: [],//所选测站的数组，可以通过批量删除那个方法去获取数组的内容，并复制到这个stcdArray里面
                stm: this.form.tm[0],//开始时间
                stnm: this.form.stnm,//测站名称
            }
            console.log(sjycjhtjobj);
            zbcgsjyclb(JSON.stringify(sjycjhtjobj)).then(res => {
                this.tableData = res.data.data.list
                this.total = res.data.data.total
            })
            // this.zbcgsjyclb();
            // console.log(`当前页: ${val}`);
        },
        // 表格的隔行颜色改变
        tableRowClassName({ row, rowIndex }) {
            if (rowIndex % 2 == 0) {
                return 'statistiss-row'
            } else {
                return ''
            }
        },
        // 查看对话框
        chakan(row) {
            // console.log(row);
            this.dialogVisible = true
            this.ckdhktitle = row.stnm
            let ckdhkarr = [{
                stcd: '',
                stnm: '',
                addvnm: '',
                stlc: ""
            }]
            ckdhkarr.map((item, index, arr) => {
                item.stcd = row.stcd
                item.stnm = row.stnm
                item.addvnm = row.addvnm
                item.stlc = row.stlc
            })
            // 第一个表格数据渲染
            this.tableData1 = ckdhkarr
            // 第二个表格的接口
            const ckdhktableobj = {
                etm: this.form.tm[1],
                stcd: row.stcd,
                minbd: row.minbd,
                maxbd: row.maxbd,
                minz: row.minz,
                maxz: row.maxz,
                stm: this.form.tm[0]
            }
            zbcgsjycckdhklb(JSON.stringify(ckdhktableobj)).then(res => {
                // console.log(res);//200
                this.tableData2 = res.data.data
            })
            this.id = row.stcd
            this.minbd = row.minbd
            this.maxbd = row.maxbd
            this.minz = row.minz
            this.maxz = row.maxz
        },
        // 查看对话框导出
        ckdhkdc() {
            // this.dialogVisible = false
            // console.log('xiazai');
            const ckdhkxzobj = {
                etm: this.form.tm[1],
                stcd: this.id,
                stm: this.form.tm[0],
                minbd: this.minbd,
                maxbd: this.maxbd,
                minz: this.minz,
                maxz: this.maxz
            }
            // console.log(ckdhkxzobj);
            zbcgjhdhkdc(JSON.stringify(ckdhkxzobj)).then(res => {
                // console.log(res);
                exprotFile.getExcel(res.data, "异常值数据统计");
            })
        },
        // 查询
        chaxun() {
            const sjycjhtjobj = {
                addvcd: this.form.addvcd,
                addvcdArray: [],//行政区划数组
                etm: this.form.tm[1],//结束时间
                pageInfo: {
                    pageIndex: this.currentPage,
                    pagesize: this.pagesize
                },
                stcd: this.form.stcd,
                stcdArray: [],//所选测站的数组，可以通过批量删除那个方法去获取数组的内容，并复制到这个stcdArray里面
                stm: this.form.tm[0],//开始时间
                stnm: this.form.stnm,//测站名称
                sttp: this.form.sttp,//测站类别
            }
            console.log(sjycjhtjobj);
            zbcgsjyclb(JSON.stringify(sjycjhtjobj)).then(res => {
                this.tableData = res.data.data.list
                this.total = res.data.data.total
            })
        },
        // 重置
        chongzhi() {
            this.form.addvcd = '220000'
            this.form.stcd = ''
            this.form.stnm = ''
            this.form.sttp = ''
            this.pagesize = 10
            this.currentPage = 1
            this.zbcgsjyclb()
        },
        // 导出
        batchOperate(command) {
            switch (command) {
                case "batch_remarks":
                    this.dialogRemarks();
                    break;
                case "export_excel":
                    this.exportExcel();
                    break;
            }
        },
        // 获取多组测站数据
        handleSelectChange(val) {
            // console.log(val);
            this.multipleSelection = val
            // console.log(this.multipleSelection);
        },
        // 导出多个测站表
        exportExcel() {
            // console.log(111)
            let arr = []
            for (let i = 0; i < this.multipleSelection.length; i++) {
                arr.push(this.multipleSelection[i].stcd)
            }
            // 将数组内的值从小到大排序，
            arr.sort()
            let arr1 = arr.sort()
            const daochuobj = {
                addvcd: '220000',
                addvcdArray: [],
                etm: this.form.tm[1],
                pageInfo: {
                    pageIndex: this.currentPage,
                    pageSize: this.pageSize
                },
                stcd: this.form.stcd,
                stcdArray: arr1,
                stm: this.form.tm[0],
                stnm: this.form.stnm,
                sttp: this.form.sttp
            }
            zbcgjhdc(JSON.stringify(daochuobj)).then(res => {
                // console.log(res);
                //利用封装的下载文件js
                exprotFile.getExcel(res.data, "多个异常测站数据统计");
            })
        },
        // 导出本页list表
        dialogRemarks() {
            // console.log(222)
            const daochuobj = {
                addvcd: '220000',
                etm: this.form.tm[1],
                pageInfo: {
                    pageIndex: this.currentPage,
                    pageSize: this.pageSize
                },
                stcd: this.form.stcd,
                stm: this.form.tm[0],
                stnm: this.form.stnm,
                sttp: this.form.sttp
            }
            zbcgjhdc(JSON.stringify(daochuobj)).then(res => {
                // console.log(res);
                //利用封装的下载文件js
                exprotFile.getExcel(res.data, "异常数据校核统计");
            })
        },
    }
}
</script>
<style lang="scss" scoped>
html,
body {
    height: 100%;
}

.sjycjhtj {
    width: 100%;
    height: 100%;
    box-sizing: border-box;

    ::v-deep .sjycjhtj-top {
        width: 97%;
        height: 10%;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        box-sizing: border-box;

        .el-form {
            /* width: 75%; */
            height: 100%;
            float: left;

            .el-form-item {
                padding-top: 10px;
                padding-right: 10px;

                .el-form-item__label {
                    background-color: #0055ab;
                    color: #fff;

                    .el-input {
                        width: 9rem;

                        .el-input__inner {
                            width: 100%;
                        }
                    }
                }
            }
        }

        .top-button {
            /* width: 25%; */
            height: 100%;
            padding-top: 10px;
            float: right;

            .el-button {
                background-color: #0055ab;
                color: #fff;

                .iconfont {
                    font-size: 14px;
                }
            }
        }
    }

    ::v-deep .sjycjhtj-middle {
        width: 97%;
        height: 90%;
        margin: 0 auto;
        box-sizing: border-box;

        .el-table {
            width: 100%;
            height: 90%;
            background-color: rgb(243, 243, 243);
            padding-top: 10px;

            .el-table__header-wrapper {}

            .el-table__body-wrapper {
                .el-icon-download:before {
                    font-size: 1rem;
                    cursor: pointer;
                }

                .iconfont {
                    cursor: pointer;
                }
            }
        }

        .bottom {
            width: 100%;
            height: 10%;

            .el-pagination {
                position: absolute;
                bottom: 3%;
                right: 6%;
            }
        }
    }

    ::v-deep .ssdhk {
        .el-dialog {
            height: 90%;

            .el-dialog__header {
                width: 100%;
                height: 10%;

                .dialog-title {
                    text-align: center;
                    font-weight: bold;
                    font-size: 40px;
                    color: rgb(51, 51, 51);

                    .button-right {
                        span {
                            color: #0055ab;
                        }
                    }
                }
            }

            .el-dialog__body {
                width: 100%;
                height: 90%;

                .center {
                    width: 100%;
                    height: 100%;
                    box-sizing: border-box;

                    .el-table {
                        width: 100%;
                        height: 100%;
                        box-sizing: border-box;
                    }
                }
            }
        }
    }
}

/deep/ .el-input {
    width: 5.6rem;

    .el-input__inner {
        width: 100%;
    }
}

/deep/ .el-range-editor.el-input__inner {
    width: 14.625rem !important;
}

/* 查看对话框底部下载按钮 */
/deep/ .el-dialog__footer {
    width: 100%;
    height: 15%;
    text-align: center;

    .el-button {
        background-color: blue;
        color: #fff;
    }
}

// 滚动条的宽度
/deep/ .el-table__body-wrapper::-webkit-scrollbar {
    width: 6px; // 横向滚动条
    height: 2px; // 纵向滚动条 必写
}

/deep/ .el-dialog__body {
    /* width: 80%; */
    height: 73%;
    padding: 0 20px;
    overflow: hidden;
    box-sizing: border-box;
}

// 滚动条的滑块
/deep/ .el-table__body-wrapper::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 3px;
}

/* 表格的行高 */
/deep/ .tableBox {
    th {
        padding: 0 !important;
        height: 50px;
        line-height: 50px;
    }

    td {
        padding: 0 !important;
        height: 40px;
        line-height: 40px;
    }
}


// 鼠标经过颜色
/deep/ .el-table__body tr:hover>td {
    background-color: #d9effe !important;
}

/* 列标题的字体颜色 */
/deep/ .el-table th.el-table__cell>.cell {
    color: #000;
}

/* 内容的字体颜色 */
/deep/ .el-table--enable-row-transition .el-table__body td.el-table__cell {
    color: #000;
}

/* 查看对话框标题的大小和颜色 */
/deep/ .dialog-title {
    .button-right {
        span {
            font-size: 20px;
            color: #0055ab;
        }
    }
}

/* 表格隔行改变的颜色 */
/deep/ .el-table__row.statistiss-row {
    background-color: #f2faff;
}

/* 去掉滚动条上方的小方块背景色 */
/deep/ .sjycjhtj-middle .el-table--border th.el-table__cell.gutter:last-of-type {
    background: rgb(243, 243, 243);
    border: none;
}

/deep/ .el-table thead.is-group th.el-table__cell {
    background-color: #b2dffe;
}

/* 查看对话框 */
/deep/ .el-dialog {
    width: 80%;
    height: 72%;

    .el-dialog__header {
        height: 12%;
        box-sizing: border-box;
    }

    .el-dialog__body {
        padding: 0 20px;
        height: 73%;
        box-sizing: border-box;
        margin-top: .625rem;

        .center {
            width: 100%;
            height: 100%;
            box-sizing: border-box;
        }
    }

    /* 查看对话框底部下载按钮 */
    .el-dialog__footer {
        width: 100%;
        height: 15%;
        text-align: center;
        box-sizing: border-box;

        .el-button {
            background-color: #0055ab;
            color: #fff;
        }
    }
}

/deep/ .el-dialog__header {
    padding-bottom: 1.25rem;
    background-color: #eee;
    height: 12%;
    box-sizing: border-box;
}
</style>